//
//  CollectionViewCell.m
//  UICollectionViewAutomCell
//
//  Created by lin on 2018/4/23.
//  Copyright © 2018年 qd. All rights reserved.
//

#import "CollectionViewCell.h"

@implementation CollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code

    self.clipsToBounds = YES;
    self.layer.cornerRadius = 2;
    self.layer.borderColor = [UIColor redColor].CGColor;
    self.layer.borderWidth = 1;

}



-(void)setModel:(Model *)model
{
    _model = model;
    
    self.textLabel.text = model.contentStr;
    
    if (model.IsSelected == YES) {
        
        self.backgroundColor = [UIColor redColor];
    }else{
      self.backgroundColor = [UIColor whiteColor];
    }
    
}

@end
